import request from '@/utils/request'

export function loginByUsername(account, password) {
    return request({
    url: '/auth/login?account='+account+'&password='+password,
    method: 'post'
  })
}

export function logout() {
    return request({
        url: '/auth/loginOut',
        method: 'post'
    })
}

export function getLoginUserInfo(token) {
  return request({
    url: '/auth/info',
    method: 'get',
    params: { token }
  })
}

